package com.lz.gmall.auto;

import com.lz.gmall.service.Impl.AutoServiceImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import javax.swing.*;

@SpringBootApplication
public class AutoApplication {
    public static void main(String[] args) {

        ConfigurableApplicationContext applicationContext = SpringApplication.run(AutoApplication.class, args);
        AutoServiceImpl bean = applicationContext.getBean(AutoServiceImpl.class);
        bean.show();
    }
}
